﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.models {
    import flash.geom.*;
    import net.wooga.pets.events.*;
    import org.robotlegs.mvcs.*;

    public class TutorialModel extends Actor {

        private var _state:int;
        private var _prevState:int;
        private var _kioskShopItemPosition:Point;
        private var _kindergartenShopItemPosition:Point;
        private var _fountainShopItemPosition:Point;
        private var _kioskTutorialActive:Boolean;// = false
        private var _fountainTutorialActive:Boolean;// = false
        private var _fountainTutorialPending:Boolean;// = false
        private var _kioskTutorialPending:Boolean;// = false

        public static const START:int = 0;
        public static const LEVEL1_LOAD_ASSETS:int = 10;
        public static const LEVEL1_SHOW_FIRST_PET:int = 20;
        public static const LEVEL1_BUILD_RECEPTION:int = 30;
        public static const LEVEL1_BUILD_WAITING_ROOM:int = 40;
        public static const LEVEL1_BUILD_BATTERY_ROOM:int = 50;
        public static const LEVEL1_BUILD_TREATMENT_GENERAL_ROOM:int = 60;
        public static const LEVEL1_BUILD_TREATMENT_GENERAL_ROOM_2:int = 70;
        public static const LEVEL1_PET_ARRIVES:int = 80;
        public static const LEVEL1_CREATE_PATIENT:int = 90;
        public static const LEVEL1_WELCOME_PATIENT:int = 110;
        public static const LEVEL1_PET_TO_TREATMENT:int = 120;
        public static const LEVEL1_CLICK_ON_SLOTMACHINE:int = 130;
        public static const LEVEL1_CLICK_ON_BATTERY:int = 140;
        public static const LEVEL1_BATTERY_TO_TREATMENT:int = 150;
        public static const LEVEL1_WAIT_FOR_FIRST_TREATMENT:int = 160;
        public static const LEVEL1_RELEASE_FIRST_TREATMENT:int = 170;
        public static const LEVEL1_CURED_FIRST_PET:int = 180;
        public static const LEVEL1_CLEAN:int = 190;
        public static const LEVEL1_CLICK_ON_SECOND_PET:int = 200;
        public static const LEVEL1_SELECT_PATIENT:int = 210;
        public static const LEVEL1_WELCOME_PATIENT_2:int = 220;
        public static const LEVEL1_WELCOME_PATIENT_3:int = 230;
        public static const LEVEL1_WELCOME_PATIENT_4:int = 240;
        public static const LEVEL1_PATIENT_IN_TREATMENT:int = 250;
        public static const LEVEL1_BOOST_PATIENT:int = 260;
        public static const LEVEL1_BOOST_PATIENT_FINISH:int = 270;
        public static const LEVEL1_FINISH_LEVEL1_TUTORIAL:int = 280;
        public static const ROOMTUTORIAL_START_TUTORIAL:int = 400;
        public static const ROOMTUTORIAL_CLICK_ON_SHOP:int = 410;
        public static const ROOMTUTORIAL_CHOOSE_ROOM:int = 420;
        public static const ROOMTUTORIAL_PLACE_ROOM:int = 430;
        public static const ROOMTUTORIAL_PET_TO_TREATMENT:int = 435;
        public static const ROOMTUTORIAL_BATTERY_TO_TREATMENT:int = 440;
        public static const ROOMTUTORIAL_CLICK_ON_MISSIONS:int = 450;
        public static const ROOMTUTORIAL_CLICK_ON_OPEN_COMPUTER:int = 460;
        public static const ROOMTUTORIAL_CHOOSE_DOG:int = 470;
        public static const ROOMTUTORIAL_FINISH_TUTORIAL:int = 480;
        public static const KIOSK_START_TUTORIAL:int = 600;
        public static const KIOSK_CLICK_ON_SHOP:int = 610;
        public static const KIOSK_CHOOSE_ROOM:int = 620;
        public static const KIOSK_PLACE_ROOM:int = 630;
        public static const KIOSK_FINISH_TUTORIAL:int = 640;
        public static const FOUNTAIN_START_TUTORIAL:int = 700;
        public static const FOUNTAIN_CLICK_ON_SHOP:int = 703;
        public static const FOUNTAIN_CHOOSE_ROOM:int = 705;
        public static const FOUNTAIN_PLACE_ROOM:int = 708;
        public static const FOUNTAIN_START_TUTORIAL_ELDER:int = 709;
        public static const FOUNTAIN_WELCOME_ELDER:int = 710;
        public static const FOUNTAIN_ELDER_WALK_TO_FOUNTAIN:int = 720;
        public static const FOUNTAIN_CLICK_ON_ELDER:int = 730;
        public static const FOUNTAIN_SHOW_ELDER_BUBBLE:int = 740;
        public static const FOUNTAIN_CLICK_ON_SYMBOL:int = 750;
        public static const FOUNTAIN_SYMBOL_TO_INVENTORY:int = 760;
        public static const FOUNTAIN_ZOOM_TO_ELDER:int = 770;
        public static const FOUNTAIN_TREAT_ELDER:int = 780;
        public static const FOUNTAIN_SHOW_TREAT_ELDER_BUBBLE:int = 790;
        public static const FOUNTAIN_WAIT_FOR_ELDER_TREATMENT:int = 800;
        public static const FOUNTAIN_RELEASE_ELDER:int = 810;
        public static const FOUNTAIN_SHARE:int = 820;
        public static const FOUNTAIN_FINISH_TUTORIAL:int = 850;
        public static const KINDERGARTEN_START_TUTORIAL:int = 900;
        public static const KINDERGARTEN_CLICK_ON_SHOP:int = 910;
        public static const KINDERGARTEN_CHOOSE_ROOM:int = 920;
        public static const KINDERGARTEN_PLACE_ROOM:int = 930;
        public static const KINDERGARTEN_BABY_WALK_IN:int = 940;
        public static const KINDERGARTEN_FINISH_TUTORIAL:int = 960;
        public static const END:int = 1000;

        public function TutorialModel(){
            this._state = TutorialModel.START;
        }
        public function set state(_arg1:int):void{
            l(("i state: " + _arg1));
            this._prevState = this._state;
            this._state = _arg1;
            dispatch(new GameEvent(GameEvent.TUTORIAL_STATE_CHANGE));
        }
        public function get state():int{
            return (this._state);
        }
        public function set kioskShopItemPosition(_arg1:Point):void{
            this._kioskShopItemPosition = _arg1;
        }
        public function get kioskShopItemPosition():Point{
            return (this._kioskShopItemPosition);
        }
        public function get kioskTutorialActive():Boolean{
            return (this._kioskTutorialActive);
        }
        public function set kioskTutorialActive(_arg1:Boolean):void{
            this._kioskTutorialActive = _arg1;
        }
        public function get prevState():int{
            return (this._prevState);
        }
        public function get fountainTutorialPending():Boolean{
            return (this._fountainTutorialPending);
        }
        public function set fountainTutorialPending(_arg1:Boolean):void{
            log(("fontain tutorial pending: " + _arg1));
            this._fountainTutorialPending = _arg1;
        }
        public function get isInTutorialMode():Boolean{
            return ((this._state < END));
        }
        public function get kioskTutorialPending():Boolean{
            return (this._kioskTutorialPending);
        }
        public function set kioskTutorialPending(_arg1:Boolean):void{
            this._kioskTutorialPending = _arg1;
        }
        public function get fountainTutorialActive():Boolean{
            return (this._fountainTutorialActive);
        }
        public function set fountainTutorialActive(_arg1:Boolean):void{
            this._fountainTutorialActive = _arg1;
        }
        public function get kindergartenShopItemPosition():Point{
            return (this._kindergartenShopItemPosition);
        }
        public function set kindergartenShopItemPosition(_arg1:Point):void{
            this._kindergartenShopItemPosition = _arg1;
        }
        public function get fountainShopItemPosition():Point{
            return (this._fountainShopItemPosition);
        }
        public function set fountainShopItemPosition(_arg1:Point):void{
            this._fountainShopItemPosition = _arg1;
        }

    }
}//package net.wooga.pets.models 
